package com.mqb;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mqb
 * @date 2021/4/7 20:15
 */
@RestController
public class HelloController {
    @PostMapping("/transfer")
    public void transferMoney(String name, Double money) {
        System.out.println("给【" + name + "】转了【" + money + "】元");
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
}
